package entity

import (
	"time"

	"shqsoft.cn/pas3ui/base"
)

//ShBlkhDggl 不良客户对公关联
type ShBlkhDggl struct {
	CUID       int        `gorm:"AUTO_INCREMENT;primary_key;column:CUID"`
	GLCUID     string     `gorm:"column:GLCUID"`
	CUNO       string     `gorm:"column:CUNO"`
	ENCD       string     `gorm:"column:ENCD"`
	CUNM       string     `gorm:"column:CUNM"`
	cfc01setud *time.Time `gorm:"column:cfc01setud;type:date;"`
	cfc01restm *float64   `gorm:"column:cfc01restm"`
	cfc01leren string     `gorm:"column:cfc01leren"`
	cfc01lerec string     `gorm:"column:cfc01lerec"`
}

//TableName 对公账户表名
func (ShBlkhDggl) TableName() string {
	return "SH_V_COMP_BLKH_DGGL"
}

// SH_V_COMP_BLKH_DGGL

func ShBlkhDgglEF() base.EntityFunc {
	return func() interface{} {
		entity := ShBlkhDggl{}
		return &entity
	}
}
func ShBlkhDgglESF() base.EntitiesFunc {
	return func() interface{} {
		var entities []ShBlkhDggl
		return &entities
	}
}

func init() {
	dao := base.NewDefaultDao(ShBlkhDgglEF(), ShBlkhDgglESF(), nil, "ch")
	base.DaoPoolObj.Put("ShBlkhDggl", dao)
}
